package com.choosefine.it.team.model.dto;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;



import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(value="查询班组条件",description="chenjian")
public class TeamDTO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="项目编号",required=true)
	private String projectCode;
	
	@ApiModelProperty(value="起始行")
	private Integer pageNum;
	
	@ApiModelProperty(value="页面行")
	private Integer pageSize;
	
	@ApiModelProperty(value="分包班组承包人")
	private String name;
	
	@ApiModelProperty(value="分包单位")
	private String companyName;
	
//	@ApiModelProperty(value="班组类别:0全部")
//	private Integer teamTypeId;
	
	@ApiModelProperty(value="承包类型:0全部1清包2重包")
	private Integer projectTypeId;
	
	@JsonIgnore
	private Integer isValid;
	
	@ApiModelProperty(value = "班组名称", required = false)
	private String teamName;
	
	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	public Integer getIsValid() {
		return isValid;
	}

	public void setIsValid(Integer isValid) {
		this.isValid = isValid;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		
		if(pageNum == null){
			this.pageNum = 1;
		}else {
			this.pageNum = pageNum;
		}
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		
		if(pageSize == null){
			this.pageSize = 10;
		}else {
			this.pageSize = pageSize;
		}
	}

	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

//	public Integer getTeamTypeId() {
//		return teamTypeId;
//	}
//
//	public void setTeamTypeId(Integer teamTypeId) {
//		this.teamTypeId = teamTypeId;
//	}

	public Integer getProjectTypeId() {
		return projectTypeId;
	}

	public void setProjectTypeId(Integer projectTypeId) {
		this.projectTypeId = projectTypeId;
	}

}
